package com.kanqiubao.kq.fragment.main.zb;

import com.kanqiubao.kq.R;
import com.kanqiubao.kq.adapter.main.MainZbListAdapter;
import com.kanqiubao.kq.fragment.SmartBaseRefreshFragment;
import com.kanqiubao.kq.view.SpaceItemDecoration;

import java.util.ArrayList;
import java.util.List;

import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

/**
 * 直播列表
 */
public class MainZbListFragment extends SmartBaseRefreshFragment<String> {
    @Override
    protected int getLayoutId() {
        return R.layout.include_smart_recycler_refresh_layout;
    }

    @Override
    protected void initData() {
        List<String> ls = new ArrayList<>();
        ls.add("");
        ls.add("");
        ls.add("");
        ls.add("");
        ls.add("");
        mSuperBaseAdapter.addData(ls);
    }

    @Override
    protected void initView() {
        mSuperBaseAdapter = new MainZbListAdapter(R.layout.main_zb_list_item_layout);
        super.initView();
        mRecyclerView.setLayoutManager(new GridLayoutManager(getActivity(), 2));
    }
}
